package org.example.config.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hzq
 * @since 2022/7/7
 */
@RestController
public class ConfigController {

    @Value("${name}")
    private String name;

    @Value("${age}")
    private String age;

    @GetMapping("/name")
    public String name(){
        return name + ":" + age;
    }
}
